package cn.stylefeng.guns.modular.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 经销商等级表
 * </p>
 *
 * @author 小飞
 * @since 2019-06-27
 */
@Data
@TableName("dealer_level")
public class DealerLevel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 经销商等级
     */
    @TableField("level_id")
    private Integer levelId;

    /**
     * 经销商区域
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 经销商名字
     */
    @TableField("name")
    private String name;

    /**
     * 经销商备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 关联部门id
     */
    @TableField("sys_user_id")
    private Long sysUserId;



    /**
     * 经销商信用额度
     */
    @TableField("credit")
    private BigDecimal credit;

    /**
     * 经销商详细地址
     */
    @TableField("address")
    private String address;

    /**
     * 账号余额
     */
    @TableField("balance")
    private BigDecimal balance;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }

    public BigDecimal getCredit() {
        return credit;
    }

    public void setCredit(BigDecimal credit) {
        this.credit = credit;
    }

    @Override
    public String toString() {
        return "DealerLevel{" +
                "id=" + id +
                ", levelId=" + levelId +
                ", areaId=" + areaId +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", sysUserId=" + sysUserId +
                ", credit=" + credit +
                ", address='" + address + '\'' +
                '}';
    }
}
